<?php
if(isset($_POST['submit']))
{
require("config.php");
$message=mysql_real_escape_string($_POST['message']);
$message=strip_tags($message);
$query=mysql_query("INSERT INTO messages(content) VALUES('{$message}')");
echo "Message Pushed to Queue";
}
?>
<form action="showmessage.php" method="POST">
<textarea rows="10" cols="30" name="message"></textarea><br/>
<input type="submit" value="Push Message" name="submit"></input>
</form>